import PropTypes from "prop-types"


const commonTypes = {
    children: PropTypes.node,
    className: PropTypes.string,
    optionItem: PropTypes.shape({
        value: PropTypes.string.isRequired,
        label: PropTypes.string.isRequired
    }),
    options: PropTypes.arrayOf(PropTypes.shape({
        label: PropTypes.string.isRequired,
        value: PropTypes.string.isRequired
    })),

    choosedDatas: PropTypes.arrayOf(PropTypes.string),
}

export default commonTypes